﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ASL_BATTLE
{
    class Player
    {
        protected int health;
        SignDetection s;
        String choice;
        //these three methods deal with health, which will be changed after each "round"
        public int getHealth()
        {
            return health;
        }

        public void setHealth(int h)
        {
            health = h;
        }

        public void takeDamage()
        {
            health--;
        }

        public void setChoice(String c)
        {
            choice = c;

        }

        public String getChoice()
        {
            return choice;
        }



        public void Init()
        {
            health = 10;
            choice = "";
        }


        //these check the current letter value the player has selected, which is converted to strings for ease of comparison
        public bool currentChoice()
        {
            return s.currentLetter();
        }

        public bool checkNoAPI(String bleh)
        {
            if (choice.Equals(bleh))
            {
                return true;
            }
            else
            {
                return false;
            }

        }
        public bool checkCorrect(String s)
        {
            if (s.Equals(choice))
            {
                return true;
            }
            else
            {
                return false;
            }

        }


    }
}
